package com.basker.pisces.service.exception;

import com.basker.pisces.service.constant.ServiceConstants;

public interface IServiceErrorResult {

    /**
     * 是否是Fallback反馈的错误
     *
     * @return
     */
    default boolean causeByFallback() {
        return getStatus() == ServiceConstants.StatusCode.HYSTRIX_FALLBACK;
    }

    String getMessage();

    int getStatus();
}
